import request from '@/utils/request'

export function Users(url, params, method, type) {
  let param = {
    url: '/api/user' + url,
    method: method || 'post',
  };
  type == 1 ? param.params = params : param.data = params;
  return request(param);
}
export function enumsAll(url, params, method, type) {
  let param = {
    url: '/api/enum' + url,
    method: method || 'post',
  };
  type == 1 ? param.params = params : param.data = params;
  return request(param);
}
export function operates(url, params, method, type) {
  let param = {
    url: '/api/operlog' + url,
    method: method || 'post',
  };
  type == 1 ? param.params = params : param.data = params;
  return request(param);
}
export function equipCommlog(url, params, method, type) {
  let param = {
    url: '/api/equipCommlog' + url,
    method: method || 'post',
  };
  type == 1 ? param.params = params : param.data = params;
  return request(param);
}
